package com.xj.sever;

import com.xj.pojo.User;
import com.xj.until.Result;
import org.springframework.stereotype.Service;


public interface UserSever {
    /**
     * 发送验证码
     * @param phone
     * @return
     */
    Result send(String phone);

    /**
     * 查询全部用户
     * @return
     */
    Result selectAll(Integer qi,Integer num);

    /**
     * 注册
     * @return
     */
    Result register(User user);

    /**
     * 删除用户
     * @param id
     * @return
     */

    Result delete(String id);

    /**
     * 重置
     * @param id
     * @return
     */

    Result reset(Integer id);

    Result authority(Integer id, String roleid);

    Result centSelect();

    Result updatePassword(String password, String newpassword);

    Result updateemail();

    Result emailcode(String code);

    Result emali1(String email);

    Result sendphone();

    Result sendphone1(String code);

    Result phone(String phone);
}
